package com.arrlist;

import java.util.ArrayList;
import java.util.List;

public class ArrayListDemo2 {
    public static void main(String[] args) {
        List<Integer> arrList = new ArrayList<Integer>();

        List<String> arrList2 = new ArrayList<String>();

        arrList2.add("12");
        arrList2.add("21");
        arrList2.remove("12");
        System.out.println(arrList2);

        arrList.add(new Integer(2));
        arrList.add(12);

        arrList.remove("2");
        arrList.set(1,2000);
        System.out.println(arrList.get(1));
        System.out.println(arrList);

        for(int i=0;i<arrList.size();i++){
            System.out.println(arrList.get(i));
        }


    }
}
